<?php
include_once("../../php/include_all.php");
$id=$_GET[id];
$skpd=get_datas("select s.id_skpd, s.nama_skpd from mus_skpd s, mus_bidang_bappeda b, mus_subbidangbappeda sb where sb.id_bdgbapeda=b.id_bdgbapeda and s.id_subbidangbappeda=sb.id_subbidangbappeda and b.id_bdgbapeda='$id' order by s.nama_skpd asc");
echo "<option value='0'>---pilih skpd---</option>";
	
foreach ($skpd as $skpd){
	$idskpd=$skpd['id_skpd'];
	$namaskpd=$skpd['nama_skpd'];
	//secho $data=$idskpd."__".$namaskpd;
	echo "<option value='$idskpd'>$namaskpd</option>";
}
?>